Set the Web Project as the Startup Project In Silverlight Apps
--------------------------------------------------------------

In Silverlight apps, the Web project must be set as the solution's Startup Project for data retrieval to occur correctly. We've set our Silverlight tutorial apps up so they will default to the Web project when first opened, but in some environments this setting will be undone by Visual Studio unless it has been set explicitly.

To make the setting permanent, you should, upon first opening the solution, right-click the web project in the Solution Explorer and select "Set to Startup Project"; then save the solution. Alternatively, you can right-click the solution node, select Properties, and then make sure the Startup Project is set to "Single startup project" and points at the Web project.


What Happens If The Setting Is Incorrect When I Run My App?
-----------------------------------------------------------
If a Silverlight app is run with the Silverlight project rather than the web project set as the Startup Project, it may appear to run normally, but the app will be unable to retrieve data. You may receive no other indication that the problem is simply a bad Startup Project setting.